/* 
 * File:   filesystem.h
 * Author: Jonas Delrue
 *
 * Created on March 25, 2010, 2:24 PM
 */

#ifndef _FILESYSTEM_H
#define	_FILESYSTEM_H

#include  <vector>
class Map;

class Knoop{
private:
    std::string naam;
    Map * ouder;
};

class File : public Knoop{
public:
    Knoop* ouder;
    File(std::string & inhoud);
    
protected:
    std::string inhoud;

};
class Map : public Knoop{
public:
    Map(const std::string &);
    bool root;
    Knoop* ouder;
private:
    std::vector<Knoop*> kids;
    
    void voegtoe(File kid);
        void voegtoe(Map kid);
};

File::File(const std::string & s){
    this->inhoud = s;
}
Map::Map(const std::string  & s){
        this->root = (s == "");
    
}
Map::voegtoe(File* kid){
        this->kids.push_back(kid);
        kid->ouder = this;
        

}

Map::voegtoe(Map* kid){
        this->kids.push_back(kid);
        kid->ouder = this;

}

#endif	/* _FILESYSTEM_H */

